package test;

/**
 * 问会不会报错,会输出什么
 */
public class Super {
    public static void main(String[] args) {
        Super s = new Super();
        s.test();
    }
    void test(){
        System.out.println("Super.test");
    }
}
class Sub extends Super{
    void test(){
        System.out.println("Sub.test");
    }
}
